Don't abort try_window with fonts change when showing tooltip (Bug#2423).
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 10 Apr 2010 10:52:30 +0000 (19:52 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 10 Apr 2010 10:52:30 +0000 (19:52 +0900)
commit7a2503592b790a1cbe0756009799fd383e70ba7f
treeee95db07d33ea6239654f7f03b0363eb7052e7db
parentda2e404c9c7c498759088b10eb56b593fa5f17b7
Don't abort try_window with fonts change when showing tooltip (Bug#2423).

* dispextern.h (TRY_WINDOW_CHECK_MARGINS)
(TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.

* xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
TRY_WINDOW_CHECK_MARGINS.

* xfns.c (Fx_show_tip): Call try_window with TRY_WINDOW_IGNORE_FONTS_CHANGE.
src/ChangeLog
src/dispextern.h
src/xdisp.c
src/xfns.c